<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        //对象优化
        const person = {
            name: 'zyw',
            age: 22,
            language: ['java','js','css']
        }

        //['name', 'age', 'language']
        console.log(Object.keys(person))

        //['zyw', 22, Array(3)]
        console.log(Object.values(person))

        //[Array(2), Array(2), Array(2)]
        console.log(Object.entries(person))
    </script>
</head>
<body>

</body>
</html>